/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import dao.implementations.NodeDaoMsSql;
import engine.Node;
import java.util.ArrayList;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 *
 * @author Johnny
 */
public class NodeDaoTester {

    public NodeDaoTester() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    @Test
    public void hello() {
        NodeDaoMsSql nd = new NodeDaoMsSql();
        /*Node node = nd.addNode(23, 1.2, "Megallo2");
        System.out.println(node.getId() + " (" + node.getX() + "," + node.getY() +
                "): " + node.getName());*/

//        nd.updateNode(new Node(2,6,6,"Megallo11"));
        ArrayList<Node> list = nd.getNodes();
        for (Node node : list) {
            System.out.println(node);
        }


    }

}